﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DONGACS.DTO.Base;

namespace DONGACS.DTO
{
    public class RolesDto : BasedDto<System.Int32>
    {
        /// <summary>
        /// Gets or sets RoleName.
        /// </summary>
        public System.String RoleName { get; set; }

        /// <summary>
        /// Gets or sets LoweredRoleName.
        /// </summary>
        public System.String LoweredRoleName { get; set; }

        /// <summary>
        /// Gets or sets Description.
        /// </summary>
        public System.String Description { get; set; }

        /// <summary>
        /// Gets or sets IsDelete.
        /// </summary>
        public System.Boolean IsDelete { get; set; }

        /// <summary>
        /// Gets or sets IsEnable.
        /// </summary>
        public System.Boolean IsEnable { get; set; }

        /// <summary>
        /// Gets or sets CreateDate.
        /// </summary>
        public System.DateTime CreateDate { get; set; }

        /// <summary>
        /// Gets or sets UpdateDate.
        /// </summary>
        public System.DateTime UpdateDate { get; set; }

        /// <summary>
        /// Gets or sets CreateBy.
        /// </summary>
        public System.Int32 CreateBy { get; set; }

        /// <summary>
        /// Gets or sets UpdateBy.
        /// </summary>
        public System.Int32 UpdateBy { get; set; }

        //extend

        public bool IsUsed { get; set; } // Role đã được gán cho user nào hay chưa

        public bool HavePermission { get; set; } // Đã gán permission nào cho Role hay chưa

        /// <summary>
        /// Gets or sets CreateBy.
        /// </summary>
        public string CreateByUser { get; set; }

        /// <summary>
        /// Gets or sets UpdateBy.
        /// </summary>
        public string UpdateByUser { get; set; }

        public string CreateDateString { get; set; }

        public string UpdateDateString { get; set; }

    }
}
